package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Classname: CopyDemo
 * @Author: bromide
 * @CreateTime: 2022/3/28--11:15
 * @Version: V1.0
 * @Desciption:
 */
public class CopyDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./11.md");
        FileOutputStream fos = new FileOutputStream("./22.txt");
        int d;
        while ((d = fis.read()) != -1) {
            fos.write(d);
        }
        System.out.println("复制结束");
        fis.close();
        fos.close();
    }
}
